package com.beans;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("readingdata")
public class ReadingData {
	@TableId(value = "dataID",type = IdType.AUTO)
    private int dataID;
    private int userID;
    private int articleID;
    private String answerStatus;
    private int score;
    private Date date;

    public ReadingData(int dataID, int userID, int articleID, String answerStatus, int score, Date date) {
        this.dataID = dataID;
        this.userID = userID;
        this.articleID = articleID;
        this.answerStatus = answerStatus;
        this.score = score;
        this.date = date;
    }

    public int getDataID() {
        return dataID;
    }

    public void setDataID(int dataID) {
        this.dataID = dataID;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public int getArticleID() {
        return articleID;
    }

    public void setArticleID(int articleID) {
        this.articleID = articleID;
    }

    public String getAnswerStatus() {
        return answerStatus;
    }

    public void setAnswerStatus(String answerStatus) {
        this.answerStatus = answerStatus;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "ReadingData{" +
                "dataID=" + dataID +
                ", userID=" + userID +
                ", articleID=" + articleID +
                ", answerStatus='" + answerStatus + '\'' +
                ", score=" + score +
                ", date=" + date +
                '}';
    }
}